<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>菜单编辑</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：系统管理 &gt; 菜单管理 &gt; 菜单编辑
			</div>
		</div>
		<div id="container">
			<form action="<%=basePath%>/admin/menu_save.action" method="post" name="form1">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="4" class="title_li">编辑菜单</td>
					</tr>
					<s:if test="%{fun.id!=null}">
						<tr>
							<td width="15%" class="title_td">菜单ID：</td>
							<td>&nbsp;${fun.id}</td>
						</tr>
					</s:if>
					<tr>
						<td width="15%" class="title_td">父菜单名称：</td>
						<td>&nbsp;${fun.funParentName}</td>
					</tr>
					<tr>
						<td class="title_td">父菜单ID：</td>
						<td><input type="text" name="funParentId" id="bnumber0" class="info_input" value="${fun.funParentId}"/><span class="note4">*</span><span style="color: gray">&nbsp;(请勿随意修改)</span></td>
					</tr>
					<tr>
						<td class="title_td">菜单名称：</td>
						<td><input type="text" name="funName" class="info_input" value="${fun.funName}" id="bit1"/><SPAN class="note4">*</SPAN></td>
					</tr>
					<tr>
						<td class="title_td">菜单连接：</td>
						<td><input type="text" name="funUrl" size="50" value="${fun.funUrl}"/></td>
					</tr>
					<tr>
						<td class="title_td">菜单打开方式：</td>
						<td><input type="text" name="funTarget" class="info_input" value="${fun.funTarget}"/><span style="color: gray">(注：默认为rightFrame)</span></td>
					</tr>
					<tr>
						<td class="title_td">菜单排序：</td>
						<td><input type="text" name="funSort" class="info_input" value="${fun.funSort}" id="number1"/><SPAN class="note4"></SPAN><span style="color: gray">(请输入数字,默认为0)</span></td>
					</tr>
					<tr>
						<td class="title_td">菜单编码：</td>
						<td><input type="text" name="funCode" class="info_input" value="${fun.funCode}"/><span style="color: gray">(针对具体功能菜单，大菜单可不填写)</span></td>
					</tr>
					<tr>
						<td class="title_td">菜单权限：</td>
						<td>&nbsp;
							<s:radio list="#{0:'超级管理员',1:'其他管理员'}" value="%{fun.funType==null?1:fun.funType}"   listKey="key" listValue="value" theme="simple" name="funType"></s:radio><span style="color: gray">(超级管理员权限包含其他管理员权限)</span>
						</td>
					</tr>
					<tr>
						<td class="title_td">是否细分增删改权限：</td>
						<td>&nbsp;
							<s:radio list="#{0:'否',1:'是'}" value="%{fun.funState==null?0:fun.funState}"   listKey="key" listValue="value" theme="simple" name="funState"></s:radio>
						</td>
					</tr>
					<tr>
						<td colspan="4" align="center">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit" value="提 交">
							<input type="reset" name="btnset" class="link_input" id="btnset" value="重 置">
							<input type="button" name="btn1" class="link_input" id="btnset1" value="返 回" onclick="window.location.href='<%=basePath%>/admin/menu_list.action'">
							</center>
						</td>
					</tr>
				</table>
				<input id="funId" type="hidden" name="funId" value="${fun.id}"/>
			</form>
		</div>
	</div>
  </body>
</html>
